add restraints ot the image size on display.