Fix rounding for bicubic, data types and performance tuning