Reduced the size of img