In the current implementation, when an img element contains a width attribute of 100% the resulting visual representation is always bigger than the actual width available in the panel.
Seems that the container calculation is incorrect, and should be fixed.