added support for BMP, GIF, EXIF, JPG, PNG and TIFF (untested)