Add support for viewing PNG and GIF files

This extends the picdocument provider with support for PNG and GIF files.