Added photo upload and view functionality