finding an image's width - is there a better way than this? (code attached)

finding an image’s width - is there a better way than this? (code attached). That is, I’ve had to display the object first here…

 function item:width() -- TODO: Requires a better implementation   
 local tempImage = display.newImage(self.imgPath,0,0)  
 local w = tempImage.width  
 tempImage:removeSelf()  
 tempImage = nil  
 return w  
 end  

Background - Wanting to use newImageRect, and then set the width dynamically by have it pick it up directly from the image… [import]uid: 140210 topic_id: 26084 reply_id: 326084[/import]