make sure preview prop is instanceof OC_Image before using it in showPreview