Retrieve offset relative to the $container instead of the first positioned parent

Fix lazy loading images in a container to use the offset relative to the $container instead of the first positioned parent.

The unit test isn't nice.