Cropping code cleanup, fix for cropping textures with inverted texture coords