Refined patient photo functionality. Added photo preview.