Note: This works with not only categories but also tags and custom taxonomies.
Install and activate WP Term Images plugin.
Edit your categories and select/upload your desired images.
Install and activate Code Snippets plugin.
Add a new Snippet named say, "Retrieve WP Term Image URL" having the following code:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.