Shakespeare tended to re-use existing stories or plays. As the article mentions, there are only two of his plays (out of almost 40) where we don’t know of a pre-existing source. Of course it is possible he made the story up himself after getting inspired by a drawing, buy I find it a lot more plausible he based it on another story or play which just happens to be lost (which is the case for many plays of the age).