Adding ImageReader to read jpg images from file system. Also moving the build of the component tree from the constructor to a member method to improve readability