Refactored application icons getting so that it can be used by the swing parts