Fix bugs in imageParser and FileSystemParser