AutoResetEvent textureDone = new AutoResetEvent(false);
//Download the texture image
Client.assets.RequestImage(textureIds[i], TextureDownloadCallback(result, textureDone));
//wait for 1 min
textureDone.waitOne(60 * 1000);
if(result[0] != null)
{
//Decode the jpeg2000 image
IOpenJPEG openJpeg = OpenJPEGFactory.getIntance();
bitmaps[i] = openJpeg.DecodeToIBitMap(result[0].AssetData);