stable vars order
fixed prio of tif->jpeg rule