Update medialib.php

Altered Line 542/600 to remove HTTPS and leave as protocol relative