resolve issue: image will be refreshed if a new photo is uploaded