I'm using WebView (the widget) to resize images. When I pass it a png (icon.png) it works. When I pass it a jpg, it doesn't work! Am I doing anything wrong or does it only work with pngs?

Code:
this.controller.get( "web-view" ).mojo.resizeImage( 
			"/var/usr/palm/applications/com.mystuff.hello/test.jpg",
			"/var/usr/palm/applications/com.mystuff.hello/newImage.jpg",
			100,
			100
			);