[layout] Fix image path for nested contents