Add proper test for image resizing