YC blocked me! :)
Change images/row if total margin > image width so stay closer to targetWidth