The problem was that if I stored the file handle, passing it's path to Templates#createSceneEelement would recopy the image in "images" folder because, that method expects relative paths if getLoadingPath() is not null. So I had to store the relative path as a String.