fix paperclip to_file