// Image management functionality let currentPage = 1; let totalPages = 1; // Load images with pagination async function loadImages(page = 1, tags = null) { if (!config.isConfigured()) { showAlert('Please configure your API settings first.', 'warning'); return; } const container = document.getElementById('imagesContainer'); container.innerHTML = '
Upload your first image to get started!
${formatDate(image.upload_date)}
${image.tags && image.tags.length > 0 ? `
${escapeHtml(image.description || 'No description')}
Created: ${formatDate(image.upload_date)}
Size: ${formatFileSize(image.file_size)}
Type: ${image.content_type}