Assigning actual image file name instead of stack image filename

Does this thread help?