Fix photo upload bug when the same image selected twice

Now if the same picture is selected again in photo uploads, the preview
overlay will show up correctly.

There's some refactoring in this commit too, splitting the
PhotoUploader#initialize into initialize and _submit.

Change-Id: Id78376cecc22a892032e086703bcd66d785d2865
Merge "Fix photo upload bug when the same image selected twice"