Fixing html5 sample using html based image loading