add restraints to image size on display