Read the dimensions of a PNG imageCode snippet for reading the width and height of a PNG image in TypeScript.