correct file leak in getInfo

correct file leak in getInfo
correct uninitialized value in imageDisplay