Match fixed PHP behavior for framed images with a height specification.

This partially reverts change I29d01e2732e02a9c356b645476f134c601e8d1dd.

Bug: 62258
Change-Id: I51907dd86c00e2a6ee4731e0ae60c5c20c79b2ff