Init drawing logics