You can do this via the attributes feature for categories. Just add and attribute (called "image", or whatever else you want it to be called) to your category. Your module code is then responsible for displaying this attribute/image the way you want it to be be displayed ...