Remove unused code for image management