removed buffersubdata for vectors in rectangle and changed crop image to set by texture coordinates