Imperfections and photoconductivity