Refactor mongoid-paperclip.rb to fix heroku load image