correct mouse positioning in sprite editor