upload new photo as soon as it is selected or taken