changing loadtexture to use SDL_image features