pipeline.py: add support for imageapi