The `imagesdir` assignment is necessary for previewing the document on GitHub or when rendering the chapter individually. This value is overridden by the *convert.sh* script.