added selectImage command handler