added support for taking screenshots only on failed specs