Fix getImageInfo to give info more accurate.