Get selection according to original image size.

This commit adds the possibility to get the selection based on the original image dimensions.