Add copy_texture_region function
Add cropping support to xcompcap