CFHTLenS: improving the quality of photometric redshifts with precision photometry