LRDOCS-1385 Refactor code and scan for all modified/new MD file images