Fixed json conversion bug

Fixed the issue with images not being converted to JSON when a statmap file is first uploaded. I'm overriding the save method, so the JSON conversion code was being called before the uploaded file had been saved to disk. I now save the file first, then convert to JSON, then call super to finish saving the rest of the object.