Fix photo query in photo browser/uploader