Fixed autotest code, fixed reference images