Moved smoothscale function
Improved sprite based image scaling