Use relative protocols for imagePath. Fixes #443