fix: add check for errors to main function
feat: add main implementation
feat: create initial structure for image-viewer