turned image id into a variable