in the process of changing to a vector array for displaying images