update image to use correct array