constrain only the width of photos in the upload template