Use an object to specify parameters to getPixmap

And allow the boundsOnly parameter that returns a JSON with exact bounds, not a pixmap