fix layout image backend