[CORE][UI] fixed a few bugs when selecting images