add plot_size and dpi options to p2d