Photo upload work in progress

Why do you need the `.to_i` here?  That seems weird to me, although I can imagine it's necessary.