xX : Math.max(0, Math.min(maxX, toNum(opts.x, 0)));
			let yPct = randomY ? Math.random() * maxY : Math.max(0, Math.min(maxY, toNum(opts.y, 0)));

			// If no positioning/size provided, use legacy centered behavior
			if (!optsProvided) {
				let mediaElement;
				if (mediaType === 'image') {
					mediaElement = document.createElement('img');
					mediaElement.src = url;
					mediaElement.style.maxWidth = '95%';
					mediaElement.style.maxHeight = '95%';
					mediaElement.style.objectFit = 'contain';
				} 