util for handling UV coordinates of an image region