If img_as_float is used a lot of values will be rounded off in the next statement.