add image size constraints