union - added maxPhotoSize