- fixed fetchFile function. The variable $imageBlkSize is
  not initialized, so it is better to use $chunk