when calling generateFileNameAndTakeScreenshot, can now specify the way in which the element will be cropped if a whole page screenshot is not desired.