OptionLoader: getPixelFormats, manage backward compatibility
OptionLoader: refactoring

* Backward compatibility: always the old version in first.
* getPixelFormats: no spaces between the name of the function and its
list of parameters.