Keep cursor on the screen

clamp x and y of cursor image