Refactor paperclip.rb to fix heroku load image.