added 'addMetricPhotoByUrl' to upload metric photos