A permanent fix to the messy code for generating stereogram