update take_screenshot to work with urls as well as rfiles