several methods depend on the updateDimensionsFromContent, if the image width and height are not set it will trigger an error. For an image they are now set by default to 0. However if we set them to 0 the image is not rendered correctly, I think this also causes an error in the tests. When an image is created also the the dimensions should be set either using the media manager or custom code.