fixed pixelart scaler, added d3d9 support