small fixes and add tex2im