edited so array will include all images