Preparations for upside down image loading (for OpenGL textures)
* add and fix vertical flip for opengl textures
* adding file + line to warning/error logging