Removed all variable allocation inside the OnDraw

Removed all variable allocation inside the OnDraw to prevent the DrawAllocation issue on low memory devices as described in this link http://tools.android.com/recent/lintperformancechecks.