OTPA JS lib: add client image generation.