modified screencap method to be a little more forgiving