fixed cropping code to properly account for inversion of either positional values or texture coordinate values, and fixed the texture coordinate problem