Merging images refactoring configuration