update dom image