Featured image in categories

In the theme comes by default the default images of the categories.
How can I add featured images to the post categories or custom post type?