Renamed image to sprite, refactored a lot