Drag to move the object, left/right keys to rotate, up/down to enlarge/reduce. Slider to change to another image.
I didn't quite get the point of the complicated code in these programs so I tried it the obvious way and it seems to work.