Guess where an image patch comes from