Added screenshot event taking a filename parameter