added drawRect: method to fix layer updation issues.