code: def still_image_output
      @still_image_output ||= AVCaptureStillImageOutput.alloc.init.tap do |output|
        settings = { 'AVVideoCodecKey' => AVVideoCodecJPEG }
        output.setOutputSettings(settings)
      end
    end
docs: iOS 4-9