Replace drop_attached_file with remove_attachment
 as the former is deprecated and throws a warning.