At which stage of mitosis are chromosomes photographed in the preparation of a karyotype?