Detect if the user has selected an image