Changed media loading

Everything can now be safely built and distributed.