Convert Image to G-CODE for CNC machine