Fix for #98.
Merge branch 'fix_tiff_error' into localwiki