Fixed flashing issue using screenshot.