Fixed the heap space problem

jpg/eps/png are now exporting the current viewport the user sees