Limit drag-and-drop of image files or opening them from Open File dialog...

... to be only one file. If multiple files are selected or dropped, then only non-image files get opened. If all of them are image files, then the last image file gets opened.

@couzteau and @peterflynn Can you review this first? I'll be submitting some drag-and-drop unit tests later.