It would work the old way, too. You just need to get rid of the 'px' after the numbers. It's unnecessary since pixels are the only thing they're
allowed to be for those particular html image attributes.
Code:
<img alt="page005_image2" width="181" height="136" src="../Images/page005_image2.png" style="float: right; margin-left: 10px; margin-bottom: 10px;" />
Of course, your inline style solution will work just fine, as well.