fixed bugs in quality checker, added close button to view sample image