Automatic device detection
Set value allows passed arguments
Changed default device
Updated path
Added commnent for cropping.
Update width and height after rotation.
Passing indices to menus
Made width and height global
File exist checks for saving
Added default index to rotate
Preview opens in new process
Implemented cropping
Implemented scanning multiple items for pdf with more than one page
Improved UX and variable names