fixed imagesarray loading issue