Image scanning working

Still some bugs, need to reset program after scans