Fixed bug in exporting an image when marks are not shown.
Merge branch 'master' into HVMeasure