title: Detecting whether an image is corrupted or broken
body: <p>I need to programmatically check whether the image that the user has selected as his wallpaper on my app is broken or corrupted....... 
  basically I provide user with the option to choose his own image as wallpaper. Now when the images loads, I just want to keep a check on whether it is somehow corrupt or not.......</p>