nix helper function in favor of consolidating the raster gcodes