Fix dismissing not working after an existing image was selected