after calculation, when i convert file to PNG image, it seems like there is wrong. 