Make sure time of upload stays consistent on filesystem and db

Sometimes, large images that took long to process would end up with a
filename on disk one second after the time they were processed by Rails.