structured the sub-images