repair selected image bug