An example:
local scale = interpolateBetween(0.7, 0, 0, 0, 0, 0, progress, "OutQuad")
local width, height = dxGetTextWidth(getPlayerName(v),scaleF,settings.font,true), 2*scale
local imageSize = 40 * scale
local offset = 40 * scale
local sx, sy = sx - (width / 2 + imageSize + offset), sy-height
dxDrawImage(sx, sy, imageSize, imageSize, "files/typing.png",0,0,0,tocolor(255,181,64,255))
-- no imageSize since the image is drawn from left to right
local sx, sy = sx + (width / 2 + offset), sy-height
dxDrawImage(sx, sy, imageSize, imageSize, "files/typing.png",0,0,0,tocolor(255,181,64,255))
Anyway, I am wondering why you use the value '350'. The image was only 40 pixels and unscaled.