AN X-rated medieval artwork filled with penises and depicting an alleged secret sex scandal could rewrite European history.