Getting new image dimensions. Displaying junk image with the dimensions in OpenGL window.