fixed delete image issue