Try solve the compass needle problem

There is a comment in the Compass.java that I put. How can you rotate
the image without losing a piece of the image?