load image using sdl and pass it to OpenGL to generate a texture