Scale 3d object from image width and height ?

Blitz3D Forums/Blitz3D Programming/Scale 3d object from image width and height ?

image = LoadImage("filaxrocks.png")
w# = ImageWidth(image)
h# = ImageHeight(image)
FreeImage image
texture = LoadTexture("filaxrocks.png")
cube = CreateCube()
EntityTexture cube,texture
ScaleEntity cube,w/w,h/w,1.0
Doesn't that work?