Update ImageBuffer.cpp

Fixes issue with Ganesh texture bindings becoming corrupted. 

Corruption occurres when a canvas is used as the source of a texImage2D