reading a whole PNG file