added dpi parameter to carto bin
use optimist to parse command line arguments