handling unset selected image
cleanup