fixed image array bug