Compare images of workpiece before and after machining