Added support for .tif file attachments