Process filename before save_attributes_to_model

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.