html-classes img flow tests and ref img fix