fixed resize issue on small images

stockRatio was not a function call