fix figure names
fix tidy opts, keep.blank.line is deprecated