fixed loading images past array size