saveMediaFromBase64 function skeleton added