Bugfix on how to round max & min pixel values