Fixed up compability with newest paperclip and Rails 4