hi there, interesting question..
perhaps this might work:
- when you click on the image call a function that checks
what the current position of the image is.
- according to that move the image to the other position.
what i did found is moving the image back on a delay..see
example on this page: