test for resizing an image