image rows made dynamically in js