setting system to visible before taking screenshot if it was invisible