Fix: ensure max resizing behaves correctly

If an image is smaller than the target, it should be scaled, not ignored.