bug fix: don't save photo once again if it exists