updated for html5 cr + picture in 5.1