Added method has_attached_file