test finalized image filter context before testing image_filter off this fixes SIGFPE if image filter errors are passed to named location