avoid adding images twice