Photodeposited diffractive optical elements of computer generated masks