check the code in bolth things its simple enough
Server_RestrictItems doesn't seem to work on items that lack an image