Added Function for decoding byte[] that using small amount of memory
Modified cameraFunc, CameraActivity and PhotoActivity