Added support for custom caption file