Fix crash when resizing while pasting into a layer that has a layer mask
Add option to keep dimensions when aspect ratio does not match