adjust size to make sure images have more or less same size as before