[DF-3965] small refactoring of imageLoader