removed dependency on SDL_image