got 1d array bmp rendering working