unlink($resimyaz['image_name']);
unlink($resimyaz['small_image']);

o bölüm böyle olacak.

Bir de file_exists ile kontrol edilirse şık olur.