add the auto size of the image