> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/image/anchor.md).

# anchor

```lua
return function()
    local app = getApp();
    local ob = app.createGameObject(); --create object to attach images to
    applyImage(ob, 'welcomeImage'); --add the image titled 'welcome' to the object
    
    ob.image.anchor('bottom left', true); 
    --anchors the image to the bottom left of the screen, 
    --true refers to accounting for image dimensions
    --to make sure it reamins completely on the screen

end
```

{% hint style="info" %}
available options are: bottom left, bottom right, top left, top right, center, left, right
{% endhint %}
