Avoided optional extra row if images are not present in that row