Added check to photo update