Teacher cleared over racy snaps