Actually, load_from_file
and create_from_image
are not procedures but functions and return Image
and ImageTexture
, so solution was just
var img = Image.new().load_from_file(lang_path + "logo.png")
var texture = ImageTexture.new().create_from_image(img)