Fix an error setting image ID