Avoid uploading back photos already in destiantion device

- Fix calculation of path for original photo