fix: image viewer function to display image
feat: check for errors when loading image
refactor: make move cursor handlers to one function
feat: add basic image viewer loop