Catch a few more OutOfMemoryErrors in createThumbnailFromUri() wherever we are creating a Bitmap. Fixes #1151.