Fix Issue #79 caused by rounded pixel values