read from temporary imagebuffer and write to GL