Add support for multiple image types.

Currently supports PNG and TIFF on OS X.