Updates paperclip to 4.0, fixes tests