The lines below replace the lines above.

Looking at it now, I think maybe I need to ensure that there is something to preview before calling _displayImage(), however.  That is, I shouldn't switch if there is not a previewblob and if previewSampleSize < 2.