fixed some bugs in the saveImage DCViz api