Different layout for theads depending on images