added another loop for the sizing of photos

however it doesn't quite work yet