Replace can_open() method with detect_format()

OpenSlide calls it detect_vendor(), but "format" makes more sense for
ImageSlide.