$('img',$images).each(function(){
                var $theImage = $(this);
                $.fn.resize($theImage,mode,o);
            });