Updated Halftone Original Code