Photoisomerization of ketocyanines