Added test for capture screenshot - test if file exists and is png file using imghdr, then delete file