Reimplemented fast and bilinear scaling without java.awt.
reimplemented bicubic scaling without java awt