Reworked the cubic image scaler