Add optional function parameter to image endpoint to pass to blitline