Update ImageBuffer.cpp

Fixed issue with Ganesh texture bindings becoming corrupted

Corruption occurred when a canvas was used as the source of a texImage2D