Flip the data buffer returned by getImageData methods in CausticUtil
Fix various texture problems, and using the wrong draw count variable in GL21VertexArray