added some workaround in config/initializers/paperclip.rb