Fix status check

We allow to search either by custom_image_id or purify process id