Read PNG image files using libpng.