Scaling sample proportionally to background
Sometimes, a sample can be too small compared to a randomly selected background. If it's the case, then cropping the background to the sample's size means losing pixel information.
We need to find a way to scale samples proportionally to the background when it is necessary in order to avoid biased results.