resize the figure to 500 dpi.