fixed table delete action to reorder images after delete.