Cache result before printing to image