Changes eight image to be a for-loop