Mostly missing declarations and missing statics.
Code didn't account for the pixbuf returned being scaled.
valgrind was complaining that we're not freeing the icon_name.
This allows using icons from the icontheme as images in CSS. The reasoning is that this allows to give the image control about how it's scaled (by using the icon theme's scaling method. So we can get crisp images at different resolutions.