# Image path set with File attribute is resolved differently when set to variable

**URL:** <https://forums.fusetools.com/t/image-path-set-with-file-attribute-is-resolved-differently-when-set-to-variable/4758>\
**Category:** Bug Reports\
**Created:** [November 5, 2015, 1:28pm UTC](https://forums.fusetools.com/t/image-path-set-with-file-attribute-is-resolved-differently-when-set-to-variable/4758 "2015-11-05T13:28:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_Kahl](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/mathias_kahl/32/327_2.png) [@Mathias\_Kahl](https://forums.fusetools.com/u/Mathias_Kahl)\
**Post date:** [November 5, 2015, 1:28pm UTC](https://forums.fusetools.com/t/image-path-set-with-file-attribute-is-resolved-differently-when-set-to-variable/4758/1 "2015-11-05T13:28:52Z")

</div>

Hi,

Fuse v.0.8.5, Windows 8.1

While this works:

```auto
<Image File="images/pic.jpg"/>

```

This doesn’t:

```auto
<JavaScript>module.exports.path = 'images/pic.jpg';</JavaScript>
<Image File="{path}"/>

```

It seems for some reason while setting the path in the first cases resolves relative to the directory uf the UX file, in the second case the path is resolved relative to the CWD of the fuse tool (see screenshot below):

![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/aXAwMVWkCato-legacy-files-1hxRiH92M3DwDHHI-GWvJejxPfMKjaEAkTTObK_Lv.jpg)
