simplify $_GET usage (move to beginning for easy escape if need be).

simplify orientation reading from big case to two small arrays.
exit early if we're done (fe. showing error images).
remove comments and cleanup some spaces.