This method can be used to query image width, height, size, and
   format without reading the whole image in to memory.