make figures conditional for png/pdf
add png files for html