You could be focusing on the main app logic rather than the spritesheet functions.
Have you finished it yet? ;)