image: Fixing root check