fixed a bug where prevImage was the result of the transformation and not the actual image. also now shows movement better