Using `updatePhotoOverlay` or `updatePhotoThumbnail` depending on if USE_OVERLAY is defined.