Finds the size and type of an image given its uri by fetching as little as needed.