Added parameters to the xkcd function. Fixed deprecation warning on Path.