add element screenshot functional