// 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.created_at)}
${image.tags && image.tags.length > 0 ? `${escapeHtml(image.description || 'No description')}
Created: ${formatDate(image.created_at)}
Size: ${formatFileSize(image.file_size)}
Dimensions: ${image.width} × ${image.height}