fixed nullpointer exeption occuring when running the ImgWriter node without having set an outputpath.