can not enhance page or listview to get it to genererate thumb css

can not enhance page or listview to get it to genererate thumb css

I tried create a page following the thumb listview example. I start with an blank html page, then dynamically inject a listview with an image in it, call  $page.trigger("pagecreate"), everything works like the example. <li> gets a style ui-li-has-thum, and <image> has style ui-li-thumb.

However, if I add the listview w/o the image first, then inject the image and call either $page.trigger("pagecreate") or $content.find( ":jqmData(role=listview)" ).listview(), the page comes out without these styles, and the image looks tiny, and the <li> element does not expand in height like in the example.

Any one ran into the same problem enhancing the list dynamically?