Output img and animation using filename of gcode