iterate imgAttribute during img link generation