Added halve_screenshot function to utils.