moving scaling to separate file
added bicubic interpolation