California substitute teacher left elementary school students in tears after watching 'inappropriate images' in class