Cherry Pick proposal for Width and Height extension to Image.

This is pretty mess, but cherry pick of Width and Height extension to Image is useful.