UPDATE: i want to do that in all in code-behind and i know you can do that in feature.xml but i am not sure how exactly.
I am creating a custom web part and i am looking for a way to have my logo (image) when the user add the web part as show in the image.