slightly changed set_cachedGraphics in FlxObject