Readded glFormat in image formats for the time being. Fixed some other compilation errors.