fixed bug caused by unit definitions in html
catch an exception related to not finding specfic byytes in jpeg images