Fix parsing the number of frames of sprites. Seems to work now (#168).