The container element is a new parameter and the filter function use it to calculate if the image is visible.
Documentation updated with container's demo.