fixing bug #4342

thumbnails are generated only if image is readable by ImageIO
default preview is displayed if image is not preview-able (ie not readable)