"""Internal backend implementations for image_gen.py."""