Allow using with Paperclip 4.x+.