make picture selection window to be closed when related edit window (owner) is destroyed