A pervert tried to send sexual messages to a young girl online and possessed the worst category of an indecent image of a child.