Made a useful method to load the sprite in an object's constructor.