expand image variable