use dpi=150 to output smaller images