Enforce width and height constraints
Tweaks to im settings