working on reading smo and displaying image