useEvent([&]{
assertNotNull(camTexture, "Camera texture cannot be null.");
assertNotNull(image, "Image cannot be null.");
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
}, image->eventAlignmentUpdated);