remove some prints and add dpi option of plot_pattern