Update:
After some iterations of displaying, digits were going crazy and displaying more and more thick digits and over lapping digits. Because of drawing over the previous image again and again, the display got messed up after some iterations.
Now, every time a blank rectangle will clear the DRAW canvas and prints a new image every time.