change alignment code to output avis, not tiffs