Added foreach to image