Added sigleton for user logged  in, added ability to attach reference object to image and find distance