clear image_array on each refresh