fixed crash when calling SDL.IMG.load