I have this function in my code to load and setup sizes for sprites.
function aux.Sprite:setTexture(renderer,imgPath) ... -- Not important for this quest