Fixed #1378 - Before validating an in-memory image file, seek to the beg...

...inning of the file. This is required to in case the same file is validated more than once. Currently, the same image file is validated twice when uploading an ImageField through the browser API - once when creating the model object, and once when rendering the HTML response.