Bending dynamics of viscoelastic photopolymer nanowires