canvas adaptive to image size; added region selection