modify plotter to plot images with margins