added code to show the category of a picture