Added new helper method to get icon or sprite for document tab.

@maethu