This patch adds the freeimage library. It's a handy way to load images of various formats via a single interface. How does it look?