Added FBO rendering to batch renderer.

Necessary for extracting image data from OpenGL. This FBO code exists
only in the testing code and will be replaced sometime in the future.

The png output code may be replaced in the future as well.