Keep tag selected after rename
Update some missed lines
Delete deprecated capi.image calls