Fix scroll calculation when afkl-image is not the direct child of afkl-container. Add a test case.