Development of an MeV gamma-ray imaging detector