use proper element to create screenshot and avoid the whitespace