For example to get the dimension of a PNG we must find the first chunk with a given type and get its fields