fixed the "destroy" method. now do:
$(selector).photobox('destroy');