Added support for imagePath, fixes #5