Optimized generation and deletion of OpenGL texture.

Generating and deleting the OpenGL texture is now down in the class constructor
and destructor, respectively, such that the OpenGL texture is now created and
detroyed only once, rather than on every trial.
Merged convertToLum() into calcLumVals(), removing the
re-iteration over lumVals.