Priority image directory parsing from xml

Refactored parsing into separate methods