update for paperclip 4