Teacher confronts student with gay photos and gives the student a lesson