fix for setting canvas size in batch mode