[graphics] add bitmap draw function