set max height and width for img on show page