Fix configuration file loader

A bug in the configuration file loading component caused wrong image
output.