ensure img can change back in size