A 23-year-old who pedalled explicit images of Valley students on Instagram was sentenced to prison and ordered to pay restitution.