image: Removing unused variables