changed sanitize to a method of ad class
changed sanitize and add image to methods of ad class
added sanitize and add image methods