Fixed render buffer image data getting lost