Store inserted images in global object