Added code for photo library and camera for ScanViewController.