change implementation of loadSprite in baseObject