Process your Dragonfly attachments in the background with delayed_job, Resque or Sidekiq.