i have this istruction in a for loop

picture.image = image.fromfile("img" & i & ".jpg")


now,if there are many image the program give me an error of insufficent memory, because ?