I had to research a problem of resizing images for mobile. It's quite interesting, because my designer suggested to have to images for landscape and portrait views. Taking her opinion, I decided to reseach by myself and found one very good idea over the Internet. It's quick, easy and it works:
After initializing jQuery and jQueryMobile, place the script in a header
$width = $('#content').width();
'max-width' : $width , 'height' : 'auto'
<div id="content"><img src="temp.jpg" /></div>