Corrected bug in vglImage.cpp