note to refactor image array