Remove dependency on libtiff