Apparition of John the Baptist’s Head

I recently came across this painting by Gustave Moreau entitled the “Apparition of the Baptist’s Head.” 
Does the ghostly apparition of the floating head of John the Baptist have a traditional legend or account, or is this artistic license?

Art majors?

Comments Policy: I reserve the right to delete comments that are offensive or off-topic. If your comment contains a hyperlink to another site, your comment automatically goes into "Comments Purgatory" where it waits for release by way of moderation.