Improve Document Preview and Document Selection [#319 responsible:none state:fixed]

Updated image preview so that the user can resize the file selection dialog
and get a better (and clearer) image preview. Also implemented file name filtering
when using the local file selection tab to select a file.