Revert "Changed behaviour for resizing an image to a larger one or to the exact measure it already has"

This reverts commit 2cfb2ac09676c019bb5827452046d87616ba2575.