Convert MWBlockImage dimensions to numbers and update tests

MWInlineImage already does this but it wasn't copied over to
MWBlockImage.

Change-Id: I9f34182b30ae72beb7b5c3d5fde2f08185cba663
Merge "Convert MWBlockImage dimensions to numbers and update tests"