allow to pass options and overwride publicPath

fixes #27