Pill Identification by Imprints: M 31