Image Helper doesn't work delete event

Permalink
Hello,
Please help me.
Image Helper doesn't work to delete at first time when after insert.
I am using c5-8.4.2 and how to fix this bug?

$b = File::getByID($id);
$a = Core::make('helper/concrete/asset_library');
echo $a->image('ccm', 'fid', t('Choose Image'), $b);