ImageId only set if images are to be uploaded