image: Add functions to obtain category information