change paperclip from v 3.0.4 to 3.1