Padding fix for image groups