Add a function that stores an OpenGL texture as a PNG file