Close photos after hashing their contents

Ghost User
2017-10-10T13:44:04+02:00

### Short description

When uploading photos, photos were not closed after hashing their contents. A context manager which
automatically closes the files would have been nicer, but Django does not allow it.