Added const to last parameter of the gl debug func

Also commented out resolve_attributes. Also changed GL_RGB to GL_RGB8 in
image2.hpp