Thermally stable photoreactive polymers as a color filter resist bearing acrylate and cinnamate double bonds