).textContent = data.total_images;

                if (data.total_images === 0) {
                    document.getElementById('image-stats').innerHTML = '<p>No images in this project.</p>';
                } else {
                    var pieData = [{
                        values: [data.annotated_images, data.non_annotated_images],
                        labels: ['Annotated', 'Non-annotated'],
                        type: 'pie'
                    }];
                    var pieLayout = { title: 'Image