Wrote abstract class for spritesheet handling