change struct to draw on a image , but still very slow....