How to add your own custom icons to any card

Is it possible to add your own icons or images to any card ?
I know with the custom button card it’s easy but I wonder if it is possible with any card ?