Extract uploaded file processing logic to MogileImageStore::Attachment
Add tests with has_attachment