[Olena-patches] 529: Fix the current implementation of image_entry, as well as some tests.