A persistent sex offender is back in jail months after being released because police found a hidden USB containing indecent images of children.