fix issues with panning misplacing sprites, and not freeing others