fix for handling imgur API 404s - fixes #1126

also cleaned up a little whitespace and whatnot
halt mediaBrowseMode when "view images" is clicked - fixes #1127