Use astropy pytest in test_scale_img