This is a good place to use some methods to explain what you intend.

`if(fromFileSystem(uri){`
    `return getLocalImage(uri)`
`} else {`
   `return getNetworkImage(uri)`
`}`