Fixes #112
Merge branch 'fix_tiff_error' into localwiki