I agree somewhat - if something's in a gallery, then it's been defined as art, but the space isn't the context for the image, at least in the majority of cases. I guess there's an element of this gallery has this type of art or the gallery becomes part of the art, either in installations or literally as in the Work No. 227: The lights going on and off by Martin Creed, but other than that many galleries I've been to are agnostic of the work they display and will show many genres from the whole history of art.
That definition of art is based on decisions made by artists, their peers, critics and ultimately the public (who may or may not need telling what constitutes a piece of art. I'm giving people the benefit of the doubt). Then, given the thumbs up, that art is submitted and shown. Admittedly that's a fairly simplisitic way of looking at it, but y'know nutshells 'n that.
po-mo 'irony' transforms the most random of snapshots into high art indeed, to the cognoscenti. This is not something which occurs to common sense (whatever that is).