image: Removing unused code