Minor refactoring and added base logic to KEUIImageFactoryUtil class.