Added OnDrawRect method dor drawing filled rect
Logging added