I am using two loops to create an image object which contains the path to the image in the file system I could not avoid using two for loops to do this task. Can I do the same t