Avoid creating two img elements