when number of row > 1000, memory use up you may consider generate middle image and release image of rows, in case of add to much image to array