An assistant headteacher in Wakefield, convicted of possessing more than 11,500 indecent images of children, has been banned from the profession.