added initdraw() func.