Fix function remove_file() for missing img in DB