A Wigan man who made images of himself sexually assaulting a young girl and then distributed them online has been jailed.