fixed possible crash. Zero the ImageInfo structure that it won't hit the delete when there's nothing allocated.