Allowed to pass in an image to parseSprites
Tweaked test + fixed bug