Substitute teacher accused of texting nude photos to student