An undertaker is accused of possessing "extreme" pornographic images involving corpses, a court was told.