Fixes #154: Exports only view port for pixel graphics and pdf, whole
lattice in case of vector graphics