adjust height to get rid of the scroll bar when image too big