test of rescaling images