deleted images management and fix line in categories_controller