Pervert caught with horse sent to prison