fix up viewing of photos