I changed mine to this:
toggle_images {
# toggle between "accept all images" and "do not load images"
menu=Image loading toggle
togglepref(INT, "network.image.imageBehavior", 0, 2);
$images_tmp = (getpref(INT, "network.image.imageBehavior") ? 2 : 0);
ID(ID_NAV_RELOAD)
alert("Images " . ($images_tmp ? "blocked" : "allowed"), "Images toggle status");
}
I added this so that the popup message box is always properly synchronized:
getpref(INT, "network.image.imageBehavior") ? pluginmsg(toolbars, "CheckButton", "Tool Bar, macros(toggle_images), 0") : pluginmsg(toolbars, "CheckButton", "Tool Bar, macros(toggle_images), 2");
I added is to the buttonSync macro as is part of the PBToggle macro (
http://kmeleon.sourceforge.net/resources/macros/library.php?c1=1&c2=3&c3=24).
I tried the other status code (for site images only) and it made no difference when I verified in the Preferences -- always showed as either all or none.