Asynchronous image loading with phonegap