Animation and image

I want to create a GUI so that an image is displayed on the whole background and the user is expected to click on some part of the image. When this happens an algorithm is called that recreates the image to be displayed and it replaces the earlier one as the background. Also I want a screen wide animation to be played when the image is clicked.

I think I’ll need Graphics and AnimatedAppContent and Mouse classes, but I don’t know how to begin. Can anyone at least give me a basic guide to do it?