Automatic image resizing support