Make more readable version of spritesheet.py