rem: if (image) {
add: if (image && label) {
context: static void changeImage(WSwitchPanel *panel, int index, int selected){  WMPixmap *pixmap= NULL;  WMLabel *label = WMGetFromArray(panel->icons, index);  RImage *image= WMGetFromArray(panel->images, index);  WMScreen *wscr = WMWidgetScreen(label);  if (image) {    RColor bgColor;    RImage *back;    if (selected) {      back= RCloneImage(panel->tile);      RCombineArea(back, image, 0, 0, image->width, image->height,                   (back->width - image->width)/2, (back->height - image->height)/2);            pixmap= WMCreatePixmapFromRImage(wscr, back, -1);      RReleaseImage(back);    } else {      bgColor.alpha= 100;      bgColor.red = WMRedComponentOfColor(WMGrayColor(wscr))>>8;      bgColor.green = WMGreenComponentOfColor(WMGrayColor(wscr))>>8;      bgColor.blue = WMBlueComponentOfColor(WMGrayColor(wscr))>>8;      image= RCloneImage(image);      RCombineImageWithColor(image, &bgColor);            pixmap= WMCreatePixmapFromRImage(wscr, image, -1);      RReleaseImage(image);    }  }  if (pixmap) {    WMSetLabelImage(label, pixmap);    WMSetLabelImagePosition(label, WIPImageOnly);    WMReleasePixmap(pixmap);  }}