Tweaking image resize behaviour.