making screen visible before taking screenshot