added option for improving resolution of plots