Detailed images and distance measurements for eighteen dwarf irregular galaxies in the Canes Venatici cloud