The BackgroundImageGeometry code in RenderBoxModelObject, especially the code for computing and setting the phase, is confusing and error prone. As such it would be a good candidate for cleanup and expanded test coverage.