clean up photo upload. allow viewing of photo