Made textures work with SDL_image.