}}" src="{{ url_for('static', filename='gallery/snapshot/pimage_preview_' + camera_info.Num|string + '.jpg') }}" class="card-img-top" style="max-height: 200px; object-fit: cover;" alt="..." onerror="this.onerror=null; this.src='{{ url_for('static', filename='gallery/snapshot/default_preview.svg') }}';">
          <!-- Badge positioned in the top-right corner -->
          <span id="captureButton_{{ camera_info.Num }}" class="badge bg-primary position-absolute top-0 end-0 m-2 fs-6"
          onclick="capture