Fix Paperclip error when uploading an avatar