* fix another memory leak in the image_destroy function