Phase Diagram of Heteropolymers with an Imprinted Conformation