Take into account the PNG header when getting the size and bit depth.