saving ratios of images for better redrawing